<template>
	<div class="view">
		<div class="head">
			<div class="search-box">
				<div class="icon-box">
					<img class="icon" src="../../../static/images/ic_search.png">
				</div>
				<input class="input" type="text" placeholder="搜索用户名" placeholder-style="color: #B4B4B4;">
			</div>
			<div class="info">
				<p>新的朋友</p>
				<p>
					<span>2</span>
					<img src="../../../static/images/ic_next.png" alt="" />
				</p>
			</div>
		</div>
		<div class="details">
			<div class="item">
				<div class="userInfo">
					<img src="" alt="" />
					<div>
						<p>昵称</p>
						<p>个人签名</p>
					</div>
				</div>
				<div class="send">发消息</div>
			</div>
		</div>
	</div>
</template>

<script>
	export default {
		data() {
			return {};
		},
	};
</script>

<style lang="scss" scoped>
	.view {
		width: 100%;
		background-color: #f1efef;

		.head {
			background-color: #ffffff;

			.search-box {
				margin: 30rpx auto;
				padding: 10rpx;
				display: flex;
				align-items: center;
				align-content: center;
				width: 690rpx;
				border-radius: 30rpx;
				box-shadow: 2rpx 3rpx 21rpx 15rpx rgba(233, 231, 231, 0.75);

				.icon-box {
					margin-top: 5rpx;

					.icon {
						width: 39rpx;
						height: 39rpx;
					}
				}

				.input {
					flex-grow: 1;
					margin-left: 10rpx;
					font-size: 26rpx;
				}
			}

			.info {
				border-top: 1rpx solid #e8e8e8;
				padding: 0rpx 30rpx;
				height: 90rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;

				p:nth-child(1) {
					color: #020202;
					font-size: 30rpx;
				}

				p:nth-child(2) {
					display: flex;
					align-items: center;

					span {
						background: #f24c41;
						border-radius: 50%;
						color: #ffffff;
						padding: 2rpx 10rpx;
						margin-right: 10rpx;
						font-size: 22rpx;
					}

					img {
						width: 15rpx;
						height: 25rpx;
					}
				}
			}
		}

		.details {
			margin-top: 30rpx;

			.item {
				background-color: #ffffff;
				padding: 30rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;
				border-bottom: 1rpx solid #e8e8e8;

				.userInfo {
					display: flex;
					align-items: center;

					img {
						width: 78rpx;
						height: 78rpx;
						border-radius: 50%;
						margin-right: 10rpx;
					}

					div {
						p:nth-child(1) {
							font-size: 30rpx;
							color: #020202;
							margin-bottom: 10rpx;
						}

						p:nth-child(2) {
							font-size: 22rpx;
							color: #999999;
						}
					}
				}

				.send {
					width: 112rpx;
					height: 50rpx;
					border: 2rpx solid #dd1d1a;
					border-radius: 25rpx;
					line-height: 50rpx;
					text-align: center;
					font-size: 24rpx;
					color: #dd1d1a;
				}
			}

			.item:nth-last-child(1) {
				border: none;
			}
		}
	}
</style>
